package cn.trigram.config;

import com.alibaba.cloud.sentinel.feign.DefaultFallback;
import feign.Response;
import feign.codec.ErrorDecoder;

/**
 * feign默认的错误译码器，可以将BlockException转换为自定义的异常，抛出由springmvc统一处理
 *
 * @author 一日看尽长安花
 * @date 2022/02/18 20:43:24
 * @see DefaultFallback
 */
public class DefaultErrorDecoder implements ErrorDecoder {

  @Override
  public Exception decode(String methodKey, Response response) {

    return null;
  }

}
